package Leetcode;

public class Leetcode_174 {
    public static int bulbSwitch(int n) {
        return (int) Math.sqrt(n + 0.5);
    }

    public static void main(String[] args) {
        int n = 3;
        System.out.println(bulbSwitch(n));
    }
}
